import React from 'react';
import ReactDOM from 'react-dom';
import 'antd/dist/antd.min.css'
import '@/index.scss';//通用的样式
import App from './App';
import store from '@/store'
import { Provider } from 'react-redux';
import { ConfigProvider } from 'antd'
import locale from 'antd/lib/locale/zh_CN';
import 'moment/locale/zh-cn';
// import reportWebVitals from './reportWebVitals';
// React.StrictMode  严格模式
ReactDOM.render
  (
    // <React.StrictMode> 开启严格模式
    <ConfigProvider locale={locale}>
      <Provider store={store} >
        < App />
      </Provider >
    </ConfigProvider>,
    // </React.StrictMode>,
    document.getElementById('root')
  );

// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
// reportWebVitals(); 如果想要测量项目的性能传一个函数 查看渲染的性能
